#define _CRT_SECURE_NO_WARNINGS 1

#include<stdio.h>
#include<stdlib.h>

int main()
{
	int* p = (int*)malloc(40);
	int* p1 = (int*)calloc(10,sizeof(int));
	int* str = realloc(p, 80);
	free(str);
	str = NULL;
	free(p);
	p = NULL;
	free(p1);
	p1 = NULL;
	return 0;
}